package io.github.topcatv.mall.common.exception;

import org.springframework.util.Assert;

/**
 * @author liuyi
 */
public class BizException extends RuntimeException {
    private BizErrorEnum bizError;

    public BizException(BizErrorEnum bizError, Exception cause) {
        super(bizError.getMessage(), cause);
        this.bizError = bizError;
    }

    public BizErrorEnum getBizError() {
        return bizError;
    }
}
